import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '类型：0-收藏职位，1-收藏简历',
    align: "center",
    dataIndex: 'collectType_dictText'
  },
  {
    title: '会员ID',
    align: "center",
    dataIndex: 'memberId'
  },
  {
    title: '招聘者ID',
    align: "center",
    dataIndex: 'comMemberId'
  },
  {
    title: '职位ID',
    align: "center",
    dataIndex: 'positionId'
  },
  {
    title: '公司ID',
    align: "center",
    dataIndex: 'companyId'
  },
  {
    title: '简历ID',
    align: "center",
    dataIndex: 'resumeId'
  },
  {
    title: '是否启用',
    align: "center",
    dataIndex: 'status'
  },
  {
    title: '排序',
    align: "center",
    dataIndex: 'sort'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remark'
  },
  {
    title: 'tenantId',
    align: "center",
    dataIndex: 'tenantId'
  },
  {
    title: '删除状态(0-正常,1-已删除)',
    align: "center",
    dataIndex: 'delFlag'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: "类型：0-收藏职位，1-收藏简历",
    field: 'collectType',
    component: 'JDictSelectTag',
    componentProps:{
      dictCode: "collect_type"
    },
    colProps: {span: 6},
  },
  {
    label: "会员ID",
    field: 'memberId',
    component: 'Input',
    colProps: {span: 6},
  },
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '类型：0-收藏职位，1-收藏简历',
    field: 'collectType',
    component: 'JDictSelectTag',
    componentProps:{
      dictCode: "collect_type"
    },
  },
  {
    label: '会员ID',
    field: 'memberId',
    component: 'Input',
  },
  {
    label: '招聘者ID',
    field: 'comMemberId',
    component: 'Input',
  },
  {
    label: '职位ID',
    field: 'positionId',
    component: 'Input',
  },
  {
    label: '公司ID',
    field: 'companyId',
    component: 'Input',
  },
  {
    label: '简历ID',
    field: 'resumeId',
    component: 'Input',
  },
  {
    label: '是否启用',
    field: 'status',
    component: 'Input',
  },
  {
    label: '排序',
    field: 'sort',
    component: 'InputNumber',
  },
  {
    label: '备注',
    field: 'remark',
    component: 'Input',
  },
  {
    label: 'tenantId',
    field: 'tenantId',
    component: 'InputNumber',
  },
  {
    label: '删除状态(0-正常,1-已删除)',
    field: 'delFlag',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
